<template>
  <div>
    <h1>我是详情</h1>
    <div>{{ id }}</div>
  </div>
</template>

<script>
import axios from 'axios'

export default {
  data () {
    return {
      id: ''
    }
  },
  async created () {
    console.log(this.$route.params.id)
    this.id = this.$route.params.id
    const res = await axios.get(
      `http://www.xiaoshuaipeng.com:8080/houses/${this.id}`
    )
    console.log(res)
  }
}
</script>

<style></style>
